<!-- 相当于给模板定义一个名称 define 和 end 是成对出现的 -->
{{ define "admin/upload.html" }}
    <!DOCTYPE html>
    <html lang="cn">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=Edge">
        <meta name="viewport" content="width=device-width,initial-scale=1.0">
        <title>document</title>
    </head>
    <bady>
        <h2>演示单文件上传</h2>

        <form action="/admin/upload/doUpload" method="post" enctype="multipart/form-data">
            用户名：<input type="text" name="username" value="" /><br><br>
            头像：<input type="file" name="face" />
            <br>
            <input type="submit" value="提交" />
        </form>

        <h2>演示多个文件上传</h2>

        <form action="/admin/upload/duoup" method="post" enctype="multipart/form-data">
            用户名：<input type="text" name="username" value="" /><br><br>
            头像：<input type="file" name="face1" />
            <br>
            头像：<input type="file" name="face2" />
            <br>
            <input type="submit" value="提交" />
        </form>

        <h2>演示多个文件上传(名字一样)</h2>

        <form action="/admin/upload/duoupname" method="post" enctype="multipart/form-data">
            用户名：<input type="text" name="username" value="" /><br><br>
            头像：<input type="file" name="face[]" />
            <br>
            头像2：<input type="file" name="face[]" />
            <br>
            头像3：<input type="file" name="face[]" />
            <br>
            <input type="submit" value="提交" />
        </form>

    </bady>

    </html>
{{ end }}